package com.kingdee.pda.ui.scan_inwarehouse;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kingdee.pda.R;

import java.util.List;

/**
 * @author：dlj
 * @data：2021/11/10 15:10
 * @des：
 */
public class ScanReceiveOrderAdapter extends BaseQuickAdapter<ScanReceiveOrderBean.AsnListBean, BaseViewHolder> {

    private Context context;

    public ScanReceiveOrderAdapter(Context context, List<ScanReceiveOrderBean.AsnListBean> beans) {
        super(R.layout.item_scanreceive_order, beans);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, ScanReceiveOrderBean.AsnListBean item) {
        viewHolder.setText(R.id.tv_OrderType, item.getTypein())
                .setText(R.id.tv_area, item.getWarehouseareaname())
                .setText(R.id.tv_locationCode, item.getWarehouselocationname())
                .setText(R.id.tv_asnNo, item.getBillno());
    }
}
